<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //本地存储 localStorage

        //存储数据 localStorage.setItem('键值key','value')
        localStorage.setItem('neme', '管小璐');
        //获取数据 localStorage.getItem('键值');
        console.log(localStorage.getItem('neme'));
        //删除数据 localStorage.removeItem('键');
        // localStorage.removeItem('neme');
        //存进去的数据是字符串类型
    </script>
</body>

</html>